﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000CC RID: 204
	internal class FixExt2 : IExtDecoder
	{
		// Token: 0x06000309 RID: 777 RVA: 0x0000BE81 File Offset: 0x0000A281
		private FixExt2()
		{
		}

		// Token: 0x0600030A RID: 778 RVA: 0x0000BE8C File Offset: 0x0000A28C
		public ExtensionResult Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 4;
			sbyte typeCode = (sbyte)bytes[offset + 1];
			byte[] data = new byte[]
			{
				bytes[offset + 2],
				bytes[offset + 3]
			};
			return new ExtensionResult(typeCode, data);
		}

		// Token: 0x040000E8 RID: 232
		internal static readonly IExtDecoder Instance = new FixExt2();
	}
}
